package combat.settlement.order;

import combat.settlement.calculate.DiscountStrategy;
import lombok.Setter;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class Order {

    @Setter
    protected DiscountStrategy discountStrategy;

    protected final double originalPrice;

    public Order(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public double calculateFinalPrice() {
        return discountStrategy.applyDiscount(originalPrice);
    }

}
